{
    "resourceType": "Bundle",
    "id": "ExampleBundleDeathCertificateWithoutSection",
    "meta": {
        "profile": [
            "https://fhir.by/AbstractArea/StructureDefinition/Bundle/BundleDeathCertificate"
        ]
    },
    "identifier": {
        "system": "https://minzdrav.gov.by",
        "value": "03-123456789-2025000000000004"
    },
    "type": "document",
    "timestamp": "2025-05-05T11:12:21Z",
    "entry": [
        {
            "fullUrl": "Composition/CompositionDeathCertificateWithoutSection",
            "resource": {
                "resourceType": "Composition",
                "id": "CompositionDeathCertificateWithoutSection",
                "meta": {
                    "lastUpdated": "2025-05-05T05:35:21Z",
                    "profile": [
                        "https://fhir.by/StructureDefinition/DeathCertificateComposition"
                    ]
                },
                "status": "final",
                "type": {
                    "coding": [
                        {
                            "system": "https://fhir.by/ValueSet/CompositionType",
                            "code": "death-conclusion",
                            "display": "Электронное врачебное свидетельство о смерти"
                        }
                    ]
                },
                "subject": [
                    {
                        "reference": "Patient/ExampleDeadPatientED"
                    }
                ],
                "date": "2025-05-05T05:35:21Z",
                "author": [
                    {
                        "reference": "Practitioner/{{PractitionerId}}",
                        "display": "Врач-терапевт участковый, Филатов Олег Михайлович"
                    }
                ],
                "title": "Электронное врачебное свидетельство о смерти",
                "custodian": {
                    "reference": "Organization/{{OrganizationId}}",
                    "display": "Поликлиника №5"
                },
                "event": [
                    {
                        "detail": [
                            {
                                "reference": {
                                    "reference": "Provenance/ExampleProvenanceDocumentInfoDeath"
                                }
                            }
                        ]
                    },
                    {
                        "detail": [
                            {
                                "reference": {
                                    "reference": "Condition/ExampleDiagnosisDepression"
                                }
                            }
                        ]
                    },
                    {
                        "detail": [
                            {
                                "reference": {
                                    "reference": "Condition/ExampleDiagnosisDiabet"
                                }
                            }
                        ]
                    },
                    {
                        "detail": [
                            {
                                "reference": {
                                    "reference": "ClinicalImpression/ExampleDeathCertificateWithoutSection"
                                }
                            }
                        ]
                    }
                ]
            }
        },
        {
            "fullUrl": "Patient/ExampleDeadPatientED",
            "resource": {
                "resourceType": "Patient",
                "id": "ExampleDeadPatientED",
                "meta": {
                    "profile": [
                        "https://fhir.by/StructureDefinition/PatientED"
                    ]
                },
                "extension": [
                    {
                        "url": "https://fhir.by/StructureDefinition/DocumentKind",
                        "valueCodeableConcept": {
                            "coding": [
                                {
                                    "system": "https://fhir.by/ValueSet/DigitalDocumentKind",
                                    "code": "03"
                                }
                            ]
                        }
                    }
                ],
                "identifier": [
                    {
                        "type": {
                            "coding": [
                                {
                                    "system": "https://fhir.by/ValueSet/PersonalDocumentType",
                                    "code": "INP"
                                }
                            ]
                        },
                        "value": "7551390A009PB3"
                    }
                ],
                "active": true,
                "name": [
                    {
                        "family": "Евдокимова",
                        "given": [
                            "Людмила",
                            "Ивановна"
                        ]
                    }
                ],
                "gender": "female",
                "birthDate": "1996-02-28",
                "deceasedDateTime": "2026-02-12T14:10:00Z",
                "address": [
                    {
                        "extension": [
                            {
                                "url": "https://fhir.by/StructureDefinition/CoutryForAddresses",
                                "valueCodeableConcept": {
                                    "coding": [
                                        {
                                            "system": "https://fhir.by/ValueSet/CitizenshipCode",
                                            "version": "1.91",
                                            "code": "BY",
                                            "display": "Беларусь"
                                        }
                                    ]
                                }
                            },
                            {
                                "url": "https://fhir.by/StructureDefinition/StreetGeoRegistry",
                                "valueCodeableConcept": {
                                    "coding": [
                                        {
                                            "system": "https://fhir.by/ValueSet/StreetGeoRegistry",
                                            "version": "1.109",
                                            "code": "72609920778",
                                            "display": "Переулок Снежный"
                                        }
                                    ]
                                }
                            },
                            {
                                "url": "https://fhir.by/StructureDefinition/ApartmentRoom",
                                "valueString": "кв. 11"
                            }
                        ],
                        "use": "home",
                        "text": "Могилевская область, г. Могилев, Переулок Снежный",
                        "line": [
                            "Переулок Снежный"
                        ],
                        "city": "г. Могилев",
                        "state": "Могилевская область",
                        "country": "Беларусь"
                    }
                ],
                "link": [
                    {
                        "other": {
                            "reference": "Patient/{{patientId}}"
                        },
                        "type": "refer"
                    }
                ]
            }
        },
        {
            "fullUrl": "Provenance/ExampleProvenanceDocumentInfoDeath",
            "resource": {
                "resourceType": "Provenance",
                "id": "ExampleProvenanceDocumentInfoDeath",
                "meta": {
                    "profile": [
                        "https://fhir.by/StructureDefinition/ProvenanceDocumentInfoDeath"
                    ]
                },
                "target": [
                    {
                        "reference": "Patient/ExampleDeadPatientED"
                    }
                ],
                "recorded": "2026-02-12",
                "agent": [
                    {
                        "type": {
                            "coding": [
                                {
                                    "system": "https://fhir.by/ValueSet/AgentTypeProvenance",
                                    "code": "organization"
                                }
                            ]
                        },
                        "who": {
                            "reference": "Organization/{{OrganizationId}}",
                            "display": "Открытое акционерное общество \"Агентство сервисизации и реинжиниринга\""
                        }
                    },
                    {
                        "type": {
                            "coding": [
                                {
                                    "system": "https://fhir.by/ValueSet/AgentTypeProvenance",
                                    "code": "practitioner"
                                }
                            ]
                        },
                        "who": {
                            "reference": "Practitioner/{{PractitionerId}}",
                            "display": "Филатов Игорь Петрович"
                        }
                    },
                    {
                        "type": {
                            "coding": [
                                {
                                    "system": "https://fhir.by/ValueSet/AgentTypeProvenance",
                                    "code": "practitionerRole"
                                }
                            ]
                        },
                        "who": {
                            "reference": "PractitionerRole/{{PractitionerRole}}",
                            "display": "Врач-кардиохирург"
                        }
                    }
                ]
            }
        },
        {
            "fullUrl": "Condition/ExampleDiagnosisDepression",
            "resource": {
                "resourceType": "Condition",
                "id": "ExampleDiagnosisDepression",
                "meta": {
                    "profile": [
                        "https://fhir.by/StructureDefinition/FinalDiagnosis"
                    ]
                },
                "extension": [
                    {
                        "url": "https://fhir.by/StructureDefinition/KindOfDiagnosis",
                        "valueCodeableConcept": {
                            "coding": [
                                {
                                    "system": "https://fhir.by/ValueSet/KindOfDiagnosisCode",
                                    "code": "Final"
                                }
                            ]
                        }
                    },
                    {
                        "url": "https://fhir.by/StructureDefinition/AssertedDate",
                        "valueDateTime": "2026-02-12"
                    }
                ],
                "clinicalStatus": {
                    "coding": [
                        {
                            "system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
                            "code": "active"
                        }
                    ]
                },
                "code": {
                    "coding": [
                        {
                            "system": "https://fhir.by/ValueSet/InternClassificDiseases10",
                            "code": "I50.0"
                            
                        }
                    ]
                },
                "subject": {
                    "reference": "Patient/{{patientId}}",
                    "display": "Петр Сидорович Иванов"
                },
                "onsetDateTime": "2026-02-12",
                "recordedDate": "2026-02-12"
            }
        },
        {
            "fullUrl": "Condition/ExampleDiagnosisDiabet",
            "resource": {
                "resourceType": "Condition",
                "id": "ExampleDiagnosisDiabet",
                "meta": {
                    "profile": [
                        "https://fhir.by/StructureDefinition/FinalDiagnosis"
                    ]
                },
                "extension": [
                    {
                        "url": "https://fhir.by/StructureDefinition/KindOfDiagnosis",
                        "valueCodeableConcept": {
                            "coding": [
                                {
                                    "system": "https://fhir.by/ValueSet/KindOfDiagnosisCode",
                                    "code": "Final"
                                }
                            ]
                        }
                    },
                    {
                        "url": "https://fhir.by/StructureDefinition/AssertedDate",
                        "valueDateTime": "2026-02-12"
                    }
                ],
                "clinicalStatus": {
                    "coding": [
                        {
                            "system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
                            "code": "active"
                        }
                    ]
                },
                "code": {
                    "coding": [
                        {
                            "system": "https://fhir.by/ValueSet/InternClassificDiseases10",
                            "code": "I25.2"
                            
                        }
                    ]
                },
                "subject": {
                    "reference": "Patient/{{patientId}}",
                    "display": "Петр Сидорович Иванов"
                },
                "onsetDateTime": "2026-02-12",
                "recordedDate": "2026-02-12"
            }
        },
        {
            "fullUrl": "Condition/ExampleDiagnosisVeins05",
            "resource": {
                "resourceType": "Condition",
                "id": "ExampleDiagnosisVeins05",
                "meta": {
                    "profile": [
                        "https://fhir.by/StructureDefinition/FinalDiagnosis"
                    ]
                },
                "extension": [
                    {
                        "url": "https://fhir.by/StructureDefinition/KindOfDiagnosis",
                        "valueCodeableConcept": {
                            "coding": [
                                {
                                    "system": "https://fhir.by/ValueSet/KindOfDiagnosisCode",
                                    "code": "Final"
                                }
                            ]
                        }
                    },
                    {
                        "url": "https://fhir.by/StructureDefinition/AssertedDate",
                        "valueDateTime": "2026-02-12"
                    }
                ],
                "clinicalStatus": {
                    "coding": [
                        {
                            "system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
                            "code": "active"
                        }
                    ]
                },
                "code": {
                    "coding": [
                        {
                            "system": "https://fhir.by/ValueSet/InternClassificDiseases10",
                            "code": "I25.1"
                            
                        }
                    ]
                },
                "subject": {
                    "reference": "Patient/{{patientId}}",
                    "display": "Петр Сидорович Иванов"
                },
                "onsetDateTime": "2026-02-12",
                "recordedDate": "2026-02-12"
            }
        },
        
        {
            "fullUrl": "ClinicalImpression/ExampleDeathCertificateWithoutSection",
            "resource": {
                "resourceType": "ClinicalImpression",
                "id": "ExampleDeathCertificateWithoutSection",
                "meta": {
                    "profile": [
                        "https://fhir.by/StructureDefinition/DeathCertificate"
                    ]
                },
                "extension": [
                    {
                        "url": "https://fhir.by/StructureDefinition/AgeOfDeath",
                        "valueCodeableConcept": {
                            "coding": [
                                {
                                    "system": "https://fhir.by/ValueSet/AgeOfDeath",
                                    "code": "04",
                                    "display": "умер в возрасте старше года"
                                }
                            ]
                        }
                    },
                    {
                        "extension": [
                            {
                                "url": "https://fhir.by/StructureDefinition/PlaceInMedicalOrganization",
                                "valueReference": {
                                    "reference": "Organization/{{OrganizationId}}"
                                    
                                }
                            },
                            {
                                "url": "https://fhir.by/StructureDefinition/PlaceOfDeathByCode",
                                "valueCodeableConcept": {
                                    "coding": [
                                        {
                                            "system": "https://fhir.by/ValueSet/PlaceOfDeathByCode",
                                            "code": "3",
                                            "display": "в организации здравоохранения, оказывающей медицинскую помощь"
                                        }
                                    ]
                                }
                            }
                        ],
                        "url": "https://fhir.by/StructureDefinition/PlaceOfDeath"
                    },
                    {
                        "url": "https://fhir.by/StructureDefinition/EstablishmentOfCauseOfDeath",
                        "valueCodeableConcept": {
                            "coding": [
                                {
                                    "system": "https://fhir.by/ValueSet/EstablishmentOfCauseOfDeath",
                                    "code": "3",
                                    "display": "вскрытия"
                                }
                            ]
                        }
                    },
                    {
                        "extension" : [
                {
                    "url" : "https://fhir.by/StructureDefinition/DuringPregnancy",
                    "valueBoolean" : false
                },
                {
                    "url" : "https://fhir.by/StructureDefinition/DuringChildbirth",
                    "valueBoolean" : false
                },
                {
                    "url" : "https://fhir.by/StructureDefinition/DayAfterChildBirth",
                    "valuePositiveInt" : 6
                }
                ],
                "url" : "https://fhir.by/StructureDefinition/DeathDuringChildbirth"
                }
                ],
                "identifier": [
                    {
                        "system": "https://minzdrav.gov.by",
                        "value": "03-123456789-2025000000000004",
                        "assigner": {
                            "reference": "Organization/{{OrganizationId}}"
                        }
                    }
                ],
                "status": "completed",
                "subject": {
                    "reference": "Patient/ExampleDeadPatientED"
                },
                "date": "2026-02-12T05:35:21Z",
                "performer": {
                    "reference": "PractitionerRole/{{PractitionerRole}}"
                },
                "finding": [
                    {
                        "item": {
                            "concept": {
                                "coding": [
                                    {
                                        "system": "https://fhir.by/ValueSet/TypeOfDeathReason",
                                        "code": "DirectlyDeathReason",
                                        "display": "Непосредственная причина смерти (мертворождения) - заболевание или состояние, непосредственно приведшее к смерти"
                                    }
                                ]
                            },
                            "reference": {
                                "reference": "Condition/ExampleDiagnosisDepression"
                                
                            }
                        }
                    },
                    {
                        "item": {
                            "concept": {
                                "coding": [
                                    {
                                        "system": "https://fhir.by/ValueSet/TypeOfDeathReason",
                                        "code": "ConditionsForDirectlyDeathReason",
                                        "display": "Патологические состояния (заболевания), вызвавшие или обусловившие непосредственную причину смерти (мертворождения)"
                                    }
                                ]
                            },
                            "reference": {
                                "reference": "Condition/ExampleDiagnosisDiabet"
                                
                            }
                        }
                    },
                    {
                        "item": {
                            "concept": {
                                "coding": [
                                    {
                                        "system": "https://fhir.by/ValueSet/TypeOfDeathReason",
                                        "code": "MainDeathReason",
                                        "display": "Основная причина смерти (мертворождения) - первоначальное заболевание или состояние"
                                    }
                                ]
                            },
                            "reference": {
                                "reference": "Condition/ExampleDiagnosisVeins05"
                                
                            }
                        }
                    }
                ]
            }
        }
    ]
}